﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LaunchAllaround.Sound
{
    [Serializable]
    public class Song
    {

        public Song(string songPath) : this(songPath, 100) { }
        public Song(string songPath, float volume)
        {
            this.songPath = songPath;
            this.Volume = volume;
        }

        private string songPath;
        public string SongPath { get { return this.songPath; } set { this.songPath = value; } }
        private float volume;
        public float Volume { 
            get { return this.volume; }
            set
            {
                if (value < 0)
                {
                    this.volume = 0;
                }
                else if (value > 100)
                {
                    this.volume = 100;
                }
                else
                {
                    this.volume = value;
                }
            } 
        }


    }
}
